﻿//using CloudFranceTriple.Models.Entities;
//using Microsoft.VisualStudio.TestTools.UnitTesting;
//using Moq;
//using System;
//using System.Web;
//using System.Web.Mvc;
//using System.Web.Routing;

//namespace CloudFranceTriple.Tests.Areas.Gaming
//{
//    [TestClass]
//    public class EventControllerTest : UnitTestBase
//    {
//        private Int32 _unitTestEventCategoryId = 9; // Maintenance
//        private Int32 _unitTestEventId = 9; // Maintenance

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Create_Post_ModelIsValid()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            var _now = DateTime.UtcNow;
//            var Eventset = new EventSet
//            {

//            };

//            // Act
//            var result = controller.Create(Eventset) as RedirectToRouteResult;


//            UnitTestEventId = Eventset.Id;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Index()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            // Act
//            var result = controller.Index() as ViewResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Details()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            // Act
//            var result = controller.Details(_unitTestEventId) as ViewResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Create_Get()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            // Act
//            var result = controller.Create() as ViewResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Edit_Get()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            // Act
//            var result = controller.Edit(_unitTestEventId) as ViewResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Edit_Post()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            var _now = DateTime.UtcNow;
//            var Eventset = new EventSet
//            {

//            };

//            // Act
//            var result = controller.Edit(Eventset) as RedirectToRouteResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_Delete_Get()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            // Act
//            var result = controller.Delete(_unitTestEventId) as ViewResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }

//        [TestMethod]
//        [TestCategory("Gaming.Event")]
//        public void EventController_DeleteConfirmed_Post()
//        {
//            // Arrange
//            var controller = new CloudFranceTriple.WebRole.Areas.Gaming.Controllers.EventController(GetWebSecurity.Object);

//            controller.ControllerContext = base.GetControllerContext.Object;

//            var context =
//                new Mock<HttpContextBase>(MockBehavior.Strict);

//            controller.Url =
//                new UrlHelper(new RequestContext(context.Object,
//                new RouteData()), new RouteCollection());

//            // Act
//            var result = controller.DeleteConfirmed(UnitTestEventId) as RedirectToRouteResult;

//            // Assert
//            Assert.IsNotNull(result);
//        }
//    }
//}
